package com.boy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.boy.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import com.boy.entity.Permission;
import com.boy.entity.dto.AccountDto;
import com.boy.tool.domain.Pos;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whd
 * @since 2024-05-23
 */
public interface AccountService extends IService<Account> {

    List<Permission> findPermission(String accountId);

    Account login(String phone,String password,String ip);

    AccountDto me(String id);

    Account created(String phone,String name,String type,String roles,String email);

    IPage<Account> find(Pos pos,String name,String phone);

    Account emailLogin(String email,String code,String ip);
}
